<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\UrlManager;

/* @var $this yii\web\View */
/* @var $model common\models\SystemConfig\SystemConfig */
/* @var $form yii\widgets\ActiveForm */

$controller_id = Yii::$app->controller->id;
$action_id = Yii::$app->controller->action->id;

?>
<div id="page">
    <!--header-->
    <header class="header-container">
        <div class="container">
            <div class="top-row">
                <div class="row">
                    <div class="col-md-2 col-sm-6 col-xs-6">
                        <div id="logo">
                            <!-- <a href="index.html"><img src="/images/logo.png" alt="logo"></a> -->
                            <a href="index.html"><span>大海</span>科技</a>
                        </div>
                    </div>
                    <!-- <div class="col-sm-6 visible-sm">
                        <div class="text-right"><button type="button" class="book-now-btn">Book Now</button></div>
                    </div> -->
                    <div class="col-md-8 col-sm-12 col-xs-12 remove-padd">
                        <nav class="navbar navbar-default">
                            <div class="navbar-header page-scroll">
                                <button data-target=".navbar-ex1-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
                                    <span class="sr-only">Toggle navigation</span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>

                            </div>
                            <div class="collapse navigation navbar-collapse navbar-ex1-collapse remove-space">
                                <ul class="list-unstyled nav1 cl-effect-10">
                                    <li>
                                        <a data-hover="首页" class="<?= $action_id == 'index' ? 'active' : '' ?>" href="<?= \yii\helpers\Url::to(['/index/index']) ?>">
                                            <span>首页</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a data-hover="关于我们" class="<?= $action_id == 'about' ? 'active' : '' ?>" href="<?= \yii\helpers\Url::to(['/index/about']) ?>">
                                            <span>关于我们</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a data-hover="案例" class="<?= $action_id == 'gallery' ? 'active' : '' ?>" href="<?= \yii\helpers\Url::to(['/index/gallery']) ?>">
                                            <span>案例</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a data-hover="新闻中心" class="<?= $action_id == 'news' ? 'active' : '' ?>" href="<?= \yii\helpers\Url::to(['/index/news']) ?>">
                                            <span>新闻中心</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a data-hover="联系我们" class="<?= $action_id == 'contact' ? 'active' : '' ?>" href="<?= \yii\helpers\Url::to(['/index/contact']) ?>">
                                            <span>联系我们</span>
                                        </a>
                                    </li>
                                </ul>

                            </div>
                        </nav>
                    </div>
                    <!-- <div class="col-md-2  col-sm-4 col-xs-12 hidden-sm">
                        <div class="text-right"><button type="button" class="book-now-btn">Book Now</button></div>
                    </div> -->
                </div>
            </div>
        </div>
    </header>
